function myPromiseRace(arr) {
    return new Promise((resolve, reject) => {
      for (let i = 0; i < arr.length; i++) {
        return arr[i].then(resolve, reject)
      }
    })
  }